/*
 * @description: 需要本地缓存的store
 * @Author: Islands
 * @Date: 2023-05-31 17:55:29
 * @LastEditTime: 2024-03-28 13:40:28
 */
import { defineStore } from 'pinia';
import {ILanguage} from '@/types/index.d'
export const useLocalStore = defineStore('local', {
    state: () => {
        return {
            /**
             * 语言
             */
            language: {
                label:'简体中文',
                value:'zh',
                icon:'#icon-zhongwen'
            } as ILanguage,
            // 整体页动画
            animation: {
                label: '淡入',
                value: 'animate__fadeOut',
            },
            //主页main 动画
            animation01: {
                label: '淡入',
                value: 'animate__fadeOut',
            },
            layout:0, //布局方案
            /**
             * 主题
             */
            themes:"light" as string
        }
    },
    actions: {
        changeLanguage() {

        }
    },
    getters: {
    },
    persist: {
        storage:sessionStorage
    }
})
